<template>
	<view class="assitant-item" @click="assistantClick">
		<assistant-computed-info type="avatar2" :avatar="itemData.sculptureUrl" :picture="itemData.picture"></assistant-computed-info>
		<view class="right-layout">
			<view class="item-row">
				<view class="user-name">{{itemData.name}}</view>
				<assistant-computed-info type="sex" :sex="itemData.sex"></assistant-computed-info>
				<view class="age">{{itemData.age||0}}岁</view>
			</view>
			<assistant-computed-info type="state2" :state="itemData.orderReceivingState" :stateText="itemData.orderReceivingStateDesc"></assistant-computed-info>
			<assistant-computed-info type="tag" :labelDescList="itemData.labelDescList"></assistant-computed-info>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			itemData: {
				type: Object,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			assistantClick(){
				this.$emit('itemClick')
			}
		}
	}
</script>

<style lang="less" scoped>
	.assitant-item{
		width: calc(100% - 32rpx);
		margin: 16rpx 16rpx 0 16rpx;
		display: flex;
		flex-direction: row;
		padding: 32rpx;
		box-sizing: border-box;
		background-color: white;
		border-radius: 16rpx;
		.head-img-layout{
			
			image{
				
			}
		}
		.right-layout{
			flex: 1;
			display: flex;
			flex-direction: column;
			.item-row{
				display: flex;
				flex-direction: row;
				align-items: center;
				margin-bottom: 8rpx;
			}
			.user-name{
				font-size: 32rpx;
				color: #021624;
				margin-right: 16rpx;
			}
			.age{
				font-size: 28rpx;
				color: #585F70;
			}
		}
		
	}
</style>
